﻿using System.ServiceModel;

namespace FitAutomation.Server
{
	[ServiceContract(CallbackContract = typeof(IFitAutomationHostServiceCallback), SessionMode = SessionMode.Required)]
	public interface IFitAutomationHostService
	{
		[OperationContract]
		int GetHostProcessId();

		[OperationContract]
		ProcessIdentifier[] GetRegisteredProcesses();

		[OperationContract]
		void RegisterProcess(ProcessIdentifier processIdentifier);

		[OperationContract(IsOneWay = true)]
		void SubscribeOnEvents();
	}
}